<script setup>

import { RouterView } from 'vue-router';
import TheWelcome from './components/thewelcome.vue'
import Test_a from './components/test_a.vue'
import Test_b from './components/test_b.vue'
</script>

<template>
    <nav class="navbar">
      <div class="nav-container">
        <div class="nav-brand">E.L.Y小组合作项目</div>
        <div class="nav-links">
          <router-link to="/"class="nav-link">首页</router-link>
          <router-link to="/test_a"class="nav-link">测试页面_A</router-link>
          <router-link to="/test_b"class="nav-link">测试页面_B</router-link>
        </div>
      </div>
    </nav>
  <main class="main-content">
    <RouterView />
  </main>
</template>

<style scoped>
.main-content {
  padding-top: 4rem; 
  min-height: calc(100vh - 4rem);
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: linear-gradient(to right, #ff87fb, #ffb6ea); 
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(212, 5, 5, 0.1);
  z-index: 1000;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
</style>
